<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="payrollCss" jsFile="payrollJs" current="打印历史记录">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>编辑工资单流水
                    <small>编辑工资单流水页面</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">编辑工资单流水信息</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        打印信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="payrollForm" >
                            <input type="hidden" id="id"  name="id" value="${payWater.id}">
                            <input type="hidden" id="userId"  name="userId" value="${payWater.userId}">  
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
	                            
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">姓名</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="姓名" name="user_name" readonly value="${payWater.name}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">子账户</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="子账户" name="bank_accounta_no" readonly value="${payWater.bank_account_no}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <!--/span-->
                                </div>
                                <div class="row">
                                	<div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">证件号码</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="lawNo" class="form-control" placeholder="★证件号码" readonly name="law_no" value="${payWater.law_no}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                	<div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">开始时间</label>
	                                            <div class="input-group-content">
				                                    <div class="input-group ">
				                                        <input type="text" class="form-control" placeholder="开始日期" readonly name="startDate" 
				                                        value="${payWater.start_time_str}">
				                                    </div>
				                                </div>
	                                        </div>
	                                    </div>
	                                </div>
	                                
                                </div>
                                <div class="row">
                                	<div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">结束时间</label>
	                                            <div class="input-group-content">
				                                    <div class="input-group ">
				                                        <input type="text" class="form-control" placeholder="结束日期" readonly name="endDate" 
				                                        value="${payWater.end_time_str}">
				                                    </div>
				                                </div>
	                                        </div>
	                                    </div>
	                                </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">打印份数</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="打印份数" name="copyNums" readonly value="${payWater.count}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">申请日期</label>
                                                <div class="input-group-content">
				                                    <div class="input-group ">
				                                        <input type="text" class="form-control" placeholder="申请日期" readonly name="applyDate" 
				                                        value="${payWater.create_time_str}">
				                                    </div>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                </div>
                                <div class="row"><h4 class="form-section col-md-12">邮寄信息</h4></div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">收件人</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="收件人" name="receiver" readonly value="${payWater.consignee}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">手机号码</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="手机号码" readonly name="mobile" value="${payWater.mobile}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">邮政编码</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="邮寄地址" readonly name="postCode" value="${payWater.postcode}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">邮寄地址省</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="邮寄地址省" readonly name="prov" value="${payWater.prov}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">邮寄地址市</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="邮寄地址市" readonly name="city" value="${payWater.city}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">邮寄地址县</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="邮寄地址县" readonly name="country" value="${payWater.country}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">邮寄地址</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="邮寄地址" readonly name="address" value="${payWater.address}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">客服电话</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="remark" class="form-control" placeholder="客服电话" readonly name="phone" value="${payWater.hot_line}">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">发件人</label>
                                                <div class="input-group-content">
                                                <!-- ${payWater.sender} -->
                                                	<input type="text" class="form-control" placeholder="发件人" name="sender" readonly value="北京上玄科技有限公司">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-4">
                                         <div class="form-group">
                                           		<div class="input-group">
                                                  	<label class="input-group-addon">快递单号</label>
                                                  	<div class="input-group-content">
                                                    	<input type="text" class="form-control expressa" name="trackingNo" placeholder="★快递单号" readonly value="${payWater.number}" id="expressa">
                                                	</div>
                                                </div>
                                          </div>
                                    </div>
                                    <div class="col-md-2 print-detail">
                                    <#if payWater.number = null >
	                                    <button type="submit" class="btn green" id="detail">打印快递单</button>
	                                <#else>
	                                	<button type="submit" class="btn green" id="redetail">再次打印</button>
	                                </#if>
	                               </div>
                                </div>
                                <div class="row">
                                	
                                   
                                </div>
                            </div> 
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                       <#if view !='toView'>
                                         <button type="submit" class="btn green" id="payrollSave">确认打印完成</button>
                                        </#if>
                                        <a href="${context}/hx_payroll/query_view_history" class="btn default">返回</a>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="printMode hide">
    	<table class="express">
	    	<tr class="under-line">
	    		<td class="f36 w90 fb table-postCode"></td>
	    		<td class="f36 w90 fb table-shipmentWay"></td>
	    		<td class="f36 w90 fb table-unitCode"></td>
	    	</tr>
	    	<tr class="h70">
	    		<td class="f30 fb pl10 h70 sender-prov">北京</td>
	    		<td class="f30 fb h70 sender-city">北京</td>
	    		<td class="f30 fb h70 sender-district">顺义</td>
	    	</tr>
	    	<tr>
	    		<td colspan="2" class="f16 fb pl10 sender-address"></td>
	    		<td  class="f16 fb  sender-mobile">15066377876</td>
	    	</tr>
	    	<tr class="under-line">
	    		<td colspan="2" class="f18 fb pl30 sender-name">王收件</td>
	    		<td  class="f9 pl50 sender-phone">0103445566</td>
	    	</tr>
	    	<tr>
	    		<td rowspan="3" colspan="2" id="bcTarget" ></td>
	    		<td class="f9">打印单位:A <span class="table-subtime-sub"></span></td>
	    	</tr>
	    	<tr>
	    		<td class="f10">受理单位:A1</td>
	    	</tr>
	    	<tr>
	    		<td class="f9">声明价值:00.00</td>
	    	</tr>
	    	
	    	<tr>
	    		<td colspan="2" class="f9">客户:<span class="receiver-name"></span></td>
	    		<td class="f18 fb">代收金额：</td>
	    	</tr>
	    	<tr>
	    		<td colspan="2">订单号:<span class="table-orderNo"></span></td>
	    		<td class="f16 fb">0.00</td>
	    	</tr>
	    	<tr>
	    		<td colspan="2" class="fb">签收人:</td>
	    		<td class="f9">&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
	    	</tr>
	    	<tr class="under-dline">
	    		<td colspan="3" class="f9">重要提示:测试单据不用发送&nbsp;&nbsp;</td>
	    	</tr>
	    	<tr class="under-line">
	    		<td colspan="2" class="f9">宅急送</td>
	    		<td class="f8 table-subtime">2013-09-22</td>
	    	</tr>
	    	<tr>
	    		<td class="f16 fb sender-name">王收件</td>
	    		<td colspan="2" class="f18 fb sender-mobile" >15066377876</td>
	    	</tr>
	    	<tr>
	    		<td class="f9">品名:货物品名</td>
	    		<td colspan="2" class="f9">订单号:<span class="table-orderNo"></span></td>
	    	</tr>
	    	<tr>
	    		<td colspan="3" class="f16 fb table-mailNo">4595355540</td>
	    	</tr>
	    </table>
    </div>
    <!-- END CONTENT BODY -->
	
</@page.mainTemplate>